package org.example.aop.proxy;

public class proxy implements HouseSubject {

    private HouseSubject houseSubject;

    public proxy(HouseSubject houseSubject) {
        this.houseSubject = houseSubject;
    }

    @Override
    public void rentHouse() {
        System.out.println("我是中介，我要开始出租房子");
        houseSubject.rentHouse();
        System.out.println("我是中介，代理结束");
    }
}
